package com.ysd.lis.controller.callNum;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.request.CommonPageDto;
import com.ysd.lis.request.callNum.CallNumParam;
import com.ysd.lis.service.callNum.CallNumHomeService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 巡检记录设备的巡检标准 前端控制器
 * </p>
 *
 * @author prs
 * @since 2024-08-29
 */
@RestController
@RequestMapping("/api/call/callNumHome")
public class CallNumHomeController extends BaseController {

    @Autowired
    CallNumHomeService callNumHomeService;

    @GetMapping("/getCallNumAgency")
    public Result getCallNumAgency(CommonPageDto pageParam){
        return callNumHomeService.getCallNumAgency(pageParam);
    }
    @GetMapping("/getCallNumAgency2")
    public Result getCallNumAgency2(CommonPageDto pageParam){
        return callNumHomeService.getCallNumAgency2(pageParam);
    }

    @ApiOperation("统计分析")
    @GetMapping("/getCallBusinessTjfx")
    public Result getCallBusinessTjfx(CallNumParam param){
        return callNumHomeService.getCallBusinessTjfx(param);
    }

}
